#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

menubar = Menu(root)

vLange = StringVar()

def printItem():
    print 'vLange = ', vLange.get()

filemenu = Menu(menubar, tearoff=0)

for k in ['Python', 'PHP', 'CPP', 'C', 'Java', 'JavaScript']:
    filemenu.add_radiobutton(label=k, command=printItem, variable = vLange)

menubar.add_cascade(label='Language', menu=filemenu)

root['menu'] = menubar

root.mainloop()
